package com.zysdev.avtask2

import android.content.Context

class RecordManager {

    private var audioCodec: AudioCodec? = null

    private var context: Context? = null

    constructor(context: Context) {
        this.context = context
        audioCodec = AudioCodec()
    }

    fun start() {
        audioCodec?.startAudio(this)
    }

    fun stop() {
        audioCodec?.stopAudio()
    }


    fun getTempPath(): String {
        return context?.getExternalFilesDir(null)?.absolutePath ?: ""
    }
}